Part Number Hot Search : 
00BGC LBW1C2A ABF10 40200 HYB18 LTC1277 MAX17 LPBSA30M
Product Description
Full Text Search
 

To Download TRW-400B Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 1 wenshing ?? t rw - 400 b rf module wireless hi power 0. 5 w rf transceiver module for narrowband system version history version date changes v1.01 jan.20,2010 1 st. edition v1.02 mar.3,2008 2 nd. editi on
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 2 specification ? uhf wireless data transceiver ? 431 mhz ~435 mhz ism ? 402 / 424 / 426 / 429 / 433 / 447 / 449 / 469 mhz operation ? single 4 v to 6 v supply ? up to 0. 5 w output power ? hi sensitivity: - 12 2 dbm ? afc function ? antenna o n b oard ? digital rssi and ca rrier sense indicator ? application range : remote metering wireless security system s automatic meter reading home automation rf transmit section parameter specification unit condition min typ e max frequency range 431 433.9 2 435 mhz rf channels 3 20 12.5 khz c hannel transmit data rate 2.4 153.6 kbps 2.4 k /4.8 k /9.6 k /19.2 k / 38.4 k /76.8 k /153.6 k output power +2 7 dbm current consumption 250 ma rf receive section parameter specification unit condition min typ e max frequency range 431 433.9 2 435 mhz rf c hannels 320 12.5 khz c hannel transmit d ata r ate 2.4 153.6 k bps 2.4 k /4.8 k /9.6 k /19.2 k / 38.4 k /76.8 k /153.6 k sensitivity - 12 2 dbm 12.5khz c hannel - 117 dbm 25khz c hannel - 98 dbm 500khz c hannel s pacing: 153.6 k band current consum ption 23 ma operating a mbient t emperature r ange - 10 + 70
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 3 demo circuit
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 4 size
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 5 pin assignment pin function description 1 nrz data rf data 2 nrz clk rf clk work rate 3 rf busy input/output 4 gnd power gnd 5 gnd power gnd 6 data input /output 7 clk input 8 reset rf reset (lo reset) 9 vcc power vdd 10 vcc power vdd 11 sma rf antenna minimum time request note: sequence diagram ( writing ) for configuration and data send : a ll black come fro m user, all red come from rf. t1 1us t2 6us t3 140ms
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 6 sequence diagram ( reading ) for configuration and data send note: n is d ecided by configuration bit6~0 in byte16 . comm and for write configuration data: 0x00h, command for read configuration data : 0x80h. command for da ta send: 0x08h, command for read data set: 0x88h command for red rssi and afc:0x90h. remark: 1. w hen it configure, if below clk number are over 136= 16+1 *8 , only need to accept data before 136 clk and others will automatically mask and wait rf_busy bec ome high level. send data which wrot e are also the same, but lck number is decided by b it6~0 of first byte of configuration, it s number = bit6~0+1 *8 . 2. w hen rf working under trans mission , it will detect data pin is in low. you can write and read data in rf at this time, otherwise, rf will be wrong. a f ter send data for one time, it will determine data line status every 10us. 3. when module received 0x90 command , please read 2 bytes. first byte is rssi value, second byte is afc value, and those two are with sign. if rssi value transfer to dbm is not sure, we only can say if read value is larger, sense indicator (it has sign differentiate) is stronger. afc value transfer to frequency is as below: f afc = afc* work rate /16 remark: receiving data sequence diagram : clk are all from user, rf_busy/data come from rf automatically .
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 7 remark: 1. read receiving data is not input from command directly. when clk which input reach n *8 , rf_ busy will automatically become high. 2. when rf_b usy is low, you can give configuration data to rf. user also need to input lck to rf in 1ms, otherwise, this data will be loss. 3. first byte address( first byte) value doesn t during 40h~77h or 80h~ffh . when using trw - 400d transceiver module, please us e main transmit mode which is similar to spi protocol to send 16 bytes to trw - 400d for configuration. c onfiguration address is 0x00, please check more details of 16 bytes as below: byte16 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 select m ode and p ackage l en gth. cm length of data byte15 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 id s etting ,w ork rate and tx/rx select rxen address b yte data rate byte14 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 receive frequency setting. freq_2r byte13 bit7 bit6 bit 5 bit4 bit3 bit2 bit1 bit0 freq_1r byte12 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 freq_0r byte11 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 t ransmit frequency setting. freq_2t byte10 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 freq_1t byte9 b it7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 freq_0t byte8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 preamble setting, fixed l ength on 4 b ytes . preamble b yte byte7 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 setting id code. address b yte 6 byte6 bit7 b it6 bit5 bit4 bit3 bit2 bit1 bit0 address b yte 5 byte5 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 address b yte 4 byte4 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 address b yte 3 byte3 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 address b yte 2 byte 2 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 address b yte 1 byte1 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 address b yte 0
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 8 byte description 1.1 byte16 : bit7(cm) mode selection: 1 ------ d irect mode. send and receive data from rf clk and rf data line, not through mcu. this mode can save spi sending time and increase sending rate. 0 ------ in direct mode. send data and receive data through mcu. bit6~0 package length should be between 1~100 bytes. 1.2 byte15 bit7(rxen) receive and transm it selecti on position: 1 ------ rf w orking is on receiving mode. 0 ------ rf w orking is on t ra nsmitting mode. bit6~4(adress_byte) id code setting: at most is 7 bytes; if it is less than 7 bytes, please select low. i f id num ber set on 4, id code save on: byte4 byte1 , high is in front . a ttention: id data and id code of paring receiver and transmitter module must be the same. b it3 rf module low power consumption : 0 ------ rf chip wo ks on low power consumption. 1 ------ rf chip w orks on normal . for bit2~0 rf working rate, there are several for your selection as below: 2.4k/4.8k/ 9.6k/19.2k/38.4k/76.8k/153.6kbps, 6 types for your selection. e x: [bit2~0]=4 when choose 38.4kbps. 1.3 byte14~12 is the value of receiving frequency: byte 1 4 is the highest byte of receiving frequency, byte 12 is the lowest by te . its formula is as below: freq = {[(f sf - 307.2k) - (3/4)*7372800]*32768 C 3686400}/ 3686400 f sf is the actual working frequency. fre q is the value of write in by te 14 ~ 12 have t o use hexadecimal method , whatever the lowest is 0 or 1, all replace by 1. e x : while configuration is in 433.92mhz freq = 433920000 - 307200 - 0.75*7372800*32768 - 3686400 /3686400 = 3805183 =0x3a0fff 1.4 byte11~9 is the value of transmitting frequency: by te 11 is the highest byte of transmitting frequency, the lowest byte is by te 9 . its formula is as below: freq =[ 433920000 - 0.75*7372800 *32768 - 3686400]/3686400 = 3807913 =0x3a1aa9 f sf is the actual working frequency. freq is the value write in by te 11 ~ 9 hav e to use hexadecimal method , whatever lowest is 0 or 1, all replace by 1.
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 9 ex: while configuration is 433.92mhz freq =[ 433920000 - 0.75*7372800 *32768 - 3686400]/3686400 = 3807913 =0x3a1aa9 1.5 byte8 is for the number of preamble code , the value is between 4~255 . 1.6 byte7~1 are the id numbers for distinguish from transmitter and receiver. the value has to be the same for a relative pair of transmitter and receiver. when configuration rf, data writing to rf are as follows: c0+byte16+byte15++byte2+by te1 ********** ************************************************************************* nrz data : when cm=1, it is the data line of rf. when cm=0, do not need this line. nrz clk : the data rate of rf: 2.4, 4.8, 9.6, 19.2, 38.4, 76.8, 153.6kbps . rf_busy : tra nsmitting status: = 0 , m odules is under busy status, control chip can t read and write module, otherwise, it will has error. = 1, it can read/write data and configuration data. receiving mode: = 0 , indicate module already received data and wait for mcu r ead data. when this line keeps 1ms and mcu doesn t read number, this data will get lost. = 1 indicate rf module waiting for data receiving and can write configuration data into module. reset : module reset pin, low level reset. data: rf module control si gnal and signal line. clk: r f control signal and signal line. when it is free, this line is high level. *********************************************************************************** r emark: the time for t1 is over 1us, time for t2 is over 6us , t ime for t3 can t over 140ms( data will not de al if connection is over time). clk is low, it write into data , clk is high, it read data. 1. under (read/write) transmitting data and (read/write) configuration status: c lock of rf_busy , clk and data will produc e from user. a) write configuration command : 0xxx0xxxb format: 00h+16 bytes configuration information. b) write transmitting data command : 0xxx1xxxb format : 08h+n byte s of data.
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 10 c) read configuration command : 1xx00xxxb format: 80h+16 bytes configuration data. d) r e ad transmitted data command : 1xx01xxxb format: 88h+n bytes data. r emark: w hen it is on configuration, below clk number should be over 136 clk data, behind data wil l be mask automatically and wait rf_busy become high level. when it write into transmitted data, it is also the same, but clk numbers will decided by bit6~0 of first byte of configuration, number= bit6~0+1 *8 e) w hen mcu detect data line is low, it can give configuration and send data to rf . 2. under receive status: rf_busy, data produce from rf , clk produce from user. a) r e ad configuration comm a nd : 1xx00xxxb format: 80h+16 bytes configuration information. b) w rite configuration command : 0xxx0xxxb forma t: 00h+16 b ytes configuration information. c) read rssi & afc command : 1xx1xxxxb forma t: 90h+afc+rssi be fore received data, value of read rssi & afc are 0. in direct mode, it can read afc & rssi value. d) read rec e ived data is not through command input. when you input clk into internal to identify data, rf_busy will automatically become high. e) when rf_busy is low, you can give configuration data to rf. 3. the functions are all the same as below, only add save elect ricity function: a) when bit3~bit0 of byte2 is equal to 0111b, meanwhile, rf entry into stop status. c urrent is less than 1ma. wake up method: g ive r eset line of rf a low pulse for 20ms. a f ter it normal working, it will automatically working and under the status of writing bit7 of byte2, but rate will become 4.8k. note: when bit2~ 0 is 111, there is no any relative rate to select. when it is other value, relative rate is as below: 4k/4.8k/9.6k/19.2k/38. 4k/76.8k/153.6k b) when bit3 of byte2 is 0, bit2~0 is not 111 and rf will entry into standby status. give configuration data, it can work on transmitted status or received status. address o f first byte should be not between 40h~77h or 80h~efh . 4. address of first byte should be now between 40h~77h or 80h~efh . ; --------------------------------------------------------- ; --------------------------------------------------------- read_config equ 80h ; read_send equ 88h ;
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 11 ; --------------------------------------------------------- ; --------------------------------------------------------- org 0000h ; nop ; nop ; sjmp reset ; ; ----------------------------------- ---------------------- reset: lcall delay200ms ; ; --------------------------------------------------- setb rf_busy ; setb clk ; setb data ; ; --------------------------------------------------- ; transmitted status ; ------------- -------------------------------------- config_tx_stat e: mov dptr ,#config_tx_table ; mov r2 ,#17 ; lcall config_send_data mov a ,#read_config mov r2 ,#16 : this is not necessary, just in order to verify wrote data is correct or not. l call read_config_s end ; ; --------------------------------------------------- send_data_loop: lcall delay20us : o n ly need to extend 20us. jb data ,$ ; mov dptr ,#send_data ; mov r2 ,#5 ; lcall config_send_data ; lcall delay 20us : this is not necessary mov a ,#read_send ; mov r2 ,#4 ; lcall read_config_s end ; ajmp send_data_loop ; ; ************************************************************ ; ********************************************************* *** ; received status ; --------------------------------------------------- mov dptr ,#config_rx_table ; mov r2 ,#17 ; lcall config_send_data ; ; --------------------------------------------------- receive_data_loop:
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 12 jb rf_busy,$ ; mov r2 ,#4 ; lcall read_data ; ajmp receive_data_loop ; ; --------------------------------------------------- ; standby status ; --------------------------------------------------- mov dptr ,#config_idle_table ; mov r2 ,#17 ; lcall conf ig_send_data ; ajmp config_tx_stat e ; ajmp config_rx_state ; or ; --------------------------------------------------- ; stop status ; --------------------------------------------------- mov dptr ,#config_stop_table ; mov r2 ,#17 ; lca ll config_send_data ; clr reset ; lcall delay20ms ; setb reset ; ajmp $ ; ; --------------------------------------------------------- ; --------------------------------------------------------- ; --------------------------- ------------------------------ read_config_s end: jnb data ,$ ; clr rf_busy : transfer to output status. read_config_s end_000: mov r3 ,#8 ; read_config_s end_001: clr clk ; clr data ; jnb acc.7 ,read_config_send_002 ; se tb data ; read_config_s end_002: clr clk ; lcall delay10cycle ; lcall delay10cycle ; lcall delay10cycle ; setb clk ; rl a ; lcall delay10cycle ; lcall delay10cycle ;
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 13 lcall delay10cycle ; djnz r3 ,read_config_send_001; setb data : transfer to input status. mov r3 ,#8 ; read_config_s end_100: clr clk ; lcall delay10cycle ; lcall delay10cycle ; lcall delay10cycle ; setb clk ; clr acc.7 ; jnb data ,read_config_send_101; setb acc.7 ; read_config_s end_101: lcall delay10cycle ; lcall delay10cycle ; lcall delay10cycle ; rl a ; djnz r3 ,read_config_send_100; mov r3 ,#8 ; mov @r0 ,a ; inc r0 ; djnz r 2 ,read_config_send_100; setb data ; transfer to input status. setb rf_busy ; transfer to input status. ret ; ; --------------------------------------------------------- ; --------------------------------------------------------- read_data: mov r3 ,#8 ; read_data_loop: clr clk ; lcall delay10cycle ; lcall delay10cycle ; lcall delay10cycle ; setb clk ; clr acc.7 ; jnb data ,read_data_loop_000 ; setb acc.7 ; read_data_loop_000: lcal l delay10cycle ; lcall delay10cycle ; lcall delay10cycle ; rl a ;
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 14 djnz r3 ,read_data_loop ; mov @r0 ,a ; inc r0 ; djnz r2 ,read_data ; ret ; ; ----------------------------------------------------- ---- ; this sub - program can use on configuration tx/rx and send data. ; --------------------------------------------------------- config_send_data: jnb data ,$ ; clr rf_busy ; transfer to output status. config_send_data_000: clr a ; movc a ,@a+dptr ; inc dptr ; mov r3 ,#8 ; config_send_data_001: clr clk ; clr data ; jnb acc.7 ,config_send_data_002; setb data ; config_send_data_002: clr clk ; lcall delay10cycle ; lcall delay10cy cle ; lcall delay10cycle ; setb clk ; rl a ; lcall delay10cycle ; lcall delay10cycle ; lcall delay10cycle ; djnz r3 ,config_send_data_001; djnz r2 ,config_send_data_000; setb rf_busy ; transfer to input sta tus setb data ; transfer to input status ret ; ; --------------------------------------------------------- ; configuration result: ; rate: 4.8k ; frequency: 433.9 ; send byte number: 4 ; received byte number: 4 ; preamble code: fixed on 4. ; address code: 4
http : //www.wenshing .com.tw ; http://www.rf.net.tw trw - 400 b data s heet p. 15 ; --------------------------------------------------------- config_tx_table: db 000h,004h,039h,03ah, 00fh,04fh,03ah,019h,0f9h ; db 004h,034h,056h,078h,090h, 012h,034h,03fh ; ; --------------------------------------------------------- config_rx_table: db 000h,004h,0b9h,03a h,00fh,04fh,03a h,019h,0f9h ; db 004h,034h,056h,078h,090h, 012h,034h,03fh ; ; --------------------------------------------------------- config_idle_table: db 000h,004h,031h,03ah, 00fh,04fh,03ah,019h,0f9h ; db 004h,034h,056h,078h,090h, 012h,034h,03fh ; ; --------------------------------------------------------- config_stop_table: db 000h,004h,037h,03ah, 00fh,04fh,03ah,019h,0f9h ; db 004h,034h,056h,078h,090h, 012h,034h,03fh ; ; -------------------------------- ------------------------- send_data: db 008h,012h,034h,056h,067h ; --------------------------------------------------------- ; end


▲Up To Search▲   

 
Price & Availability of TRW-400B

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X